<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<html>
    <head>
        <title>验证码登录页面</title>
        <script>
            function reloadImage(){
                document.getElementById('btn').disalbe=true;
                document.getElementById('identity').src='${pageContext.request.contextPath}/servlet/ChineseCheckCode?ts='+new Date().getTime();
            }
        </script>
    </head>
    <body>
        <form action="${pageContext.request.contextPath}/servlet/CheckCodeServlet" method="post">
            验证码：<input type="text" name="checkedcode"><br/>
            <img src="${pageContext.request.contextPath}/servlet/ChineseCheckCode" id="identity" onload="btn.disalbe=false;"><br/>
            <input type="button" value="换个图片" onclick="reloadImage()" id="btn"><br/>
            <input type="submit" value="提交"/>
        </form>
    </body>
</html>
